<!DOCTYPE html>
<html>
<head>
    <title>纸张开度表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("quotePaperKai:quotepaperkai:save")>
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("quotePaperKai:quotepaperkai:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("quotePaperKai:quotepaperkai:delete")>
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
            <div class="col-sm-2 control-label">开度值</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="quotePaperKai.kaiValue" placeholder="请输入开度值"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">尺寸长</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="quotePaperKai.sizeLength" placeholder="请输入尺寸长"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">尺寸宽</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="quotePaperKai.sizeWide" placeholder="请输入尺寸宽"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">正大度</div>
                <div class="col-sm-10">
                    <!--<input type="text" class="form-control input-sm" v-model="quotePaperKai.zhengDaDu" placeholder="正大度"/>-->
                    <select v-model="quotePaperKai.zhengDaDu" class="form-control">
                        <!--<option value="">请选择正大度类型</option>-->
                        <option value="zheng_du">正大度</option>
                        <option value="da_du">大度</option>
                    </select>
                </div>
            </div>

            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label">是否屏蔽</div>
                <div class="col-sm-10">
                    <!--<input type="text" class="form-control input-sm" v-model="quotePaperKai.delFlag" placeholder="是否屏蔽（1：是；0：否）"/>-->
                    <el-switch
                            style="display: block"
                            v-model="quotePaperKai.delFlag"
                            active-color="#87CEFF"
                            inactive-color="#F2F2F2"
                            active-text="屏蔽"
                            inactive-text="不屏蔽">
                    </el-switch>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">是否在前端显示</div>
                <div class="col-sm-10">
                    <!--<input type="text" class="form-control input-sm" v-model="quotePaperKai.display" placeholder="是否在前端显示(1显示,0不显示)"/>-->
                    <el-switch
                            style="display: block"
                            v-model="quotePaperKai.display"
                            active-color="#87CEFF"
                            inactive-color="#F2F2F2"
                            active-text="显示"
                            inactive-text="不显示">
                    </el-switch>
                </div>
            </div>
            <div class="form-group" v-if="title == '修改'">
                <div class="col-sm-2 control-label">创建时间</div>
                <div class="col-sm-10">
                    <input type="text" readonly="true" class="form-control input-sm" v-model="quotePaperKai.createDate" placeholder="创建时间"/>
                </div>
            </div>
            <div class="form-group" v-if="title == '修改'">
                <div class="col-sm-2 control-label">创建人员</div>
                <div class="col-sm-10">
                    <input type="text" readonly="true" class="form-control input-sm" v-model="quotePaperKai.createUser" placeholder="创建人员"/>
                </div>
            </div>
            <div class="form-group" v-if="title == '修改'">
                <div class="col-sm-2 control-label">更新时间</div>
                <div class="col-sm-10">
                    <input type="text" readonly="true" class="form-control input-sm" v-model="quotePaperKai.updateDate" placeholder="更新时间"/>
                </div>
            </div>
            <div class="form-group" v-if="title == '修改'">
                <div class="col-sm-2 control-label">更新人员</div>
                <div class="col-sm-10">
                    <input type="text" readonly="true" class="form-control input-sm" v-model="quotePaperKai.updateUser" placeholder="更新人员"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">产品类型</div>
                <div class="col-sm-10">
                    <!--<input type="text" class="form-control input-sm" v-model="quotePaperKai.categoryType" placeholder="产品类型(normal标准开度纸张尺寸,glue不干胶尺寸)"/>-->
                    <select v-model="quotePaperKai.categoryType" class="form-control">
                        <!--<option selected>请选择产品类型</option>-->
                        <option value="normal">标准开度纸张尺寸</option>
                        <option value="glue">不干胶尺寸</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">优先条件</div>
                <div class="col-sm-10">
                    <div class="col-sm-3 grid-content bg-purple-light" style="text-align: center;">机器</div><div class="col-sm-9 grid-content bg-purple-light" style="text-align: center;">数量</div>
                    <div class="col-sm-3">全开机</div><div class="col-sm-9"><input class="form-control" v-model="priority.one_kai"/></div>
                    <div class="col-sm-3">对开机</div><div class="col-sm-9"><input class="form-control" v-model="priority.two_kai"/></div>
                    <div class="col-sm-3">四开机</div><div class="col-sm-9"><input class="form-control" v-model="priority.four_kai"/></div>
                    <div class="col-sm-3">八开机</div><div class="col-sm-9"><input class="form-control" v-model="priority.eight_kai"/></div>
                    <!--<table>-->
                        <!--<thead><th>机器</th><th>数量</th></thead>-->
                    <!--</table>-->
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>&nbsp;&nbsp;
                <input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<style>
    .grid-content {
        border-radius: 4px;
        min-height: 36px;
    }
    .bg-purple-light {
        background: #e5e9f2;
    }
</style>
<script src="${request.contextPath}/statics/js/modules/quotePaperKai/quotepaperkai.js?_${.now?long}"></script>
</body>
</html>